# ------------------
# Techniques de développement
# M1 ALMA 2011-2012
# Pauline Folz - Adrien Quillet
# 
#

SUBDIRS = tinyxml utils map mapviewer robotmap sensors robot pluginmanager

bin_PROGRAMS = tmxviewer
tmxviewer_SOURCES = \
	main.cpp \
	mainwindow.cpp \
	mainwindow_moc.cpp
tmxviewer_CXXFLAGS = $(QT_CXXFLAGS) $(QT_DEFINES) $(QT_INCPATH) \
		     $(CXXFLAGS) $(AM_CXXFLAGS) \
		          -I$(BOOST_PYTHON_INCLUDE_DIR) -I$(PYTHON_INCLUDE_DIR)
tmxviewer_LDFLAGS = $(QT_LDFLAGS) $(QT_LIBS) $(LDFLAGS) $(AM_LDFLAGS) \
			 $(BOOST_PYTHON_LIB) -L$(BOOST_PYTHON_LIB_DIR)
tmxviewer_LDADD = ./tinyxml/libtinyxml.la ./utils/libutils.la \
		  ./map/libmap.la ./mapviewer/libmapviewer.la \
		  ./robot/librobot.la ./robotmap/librobotmap.la \
		  ./sensors/libsensors.la ./pluginmanager/libpm.la
tmxviewer_DEPENDENCIES = ./tinyxml/libtinyxml.la ./utils/libutils.la \
			 ./map/libmap.la ./mapviewer/libmapviewer.la \
			 ./robot/librobot.la ./robotmap/librobotmap.la \
			 ./sensors/libsensors.la ./pluginmanager/libpm.la

# lib_LTLIBRARIES = librobot.la
# 
# librobot_la_SOURCES = 	robot/robot.cpp
# 
# librobot_la_CXXFLAGS = -I./.. -L./sensors -L./utils -L./tinyxml -L./map -L./mapviewer -L./robotmap -L./pluginmanager \
# 		       $(QT_CXXFLAGS) $(QT_DEFINES) $(QT_INCPATH) \
# 		       $(CXXFLAGS) $(AM_CXXFLAGS) \
# 		       -I$(BOOST_PYTHON_INCLUDE_DIR) -I$(PYTHON_INCLUDE_DIR)
# librobot_la_LDFLAGS =  -lsensors -lpm -lmap -lrobotmap -lmapviewer -ltinyxml -lutils \
# 			$(QT_LDFLAGS) $(QT_LIBS) $(LDFLAGS) $(AM_LDFLAGS) \
# 			$(BOOST_PYTHON_LIB) -L$(BOOST_PYTHON_LIB_DIR)

%_moc.cpp: %.h
	$(MOC) $< -o $@

ui_mainwindow.h : mainwindow.ui
	$(UIC) $< -o $@

mainwindow.cpp : ui_mainwindow.h

CLEANFILES = mainwindow_moc.cpp ui_mainwindow.h